import services from "@/services/services"

export const getUnits = async(data: any)=>{
    return await services.get('/categories',data)
}
export const createUnit = async(data:any)=>{
    return await services.post('/categories',data)
}
 export const updateUnit = async(id:number,data:any)=>{
    return await services.put(`/categories/${id}`,data)
 }
 export const deleteUnit = async(id:number)=>{
     return await services.delete(`/categories/${id}`)
 }